package com.qf.pojo;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(1000,"SUCCESS"),
    FAIL(1050,"FAIL"),
    ERROR(5000,"服务器忙，稍后重试"),
    NOLOGIN(2001,"尚未登录"),
    NOAUTH(2002,"没有权限"),
    OUT_ACCOUNT_NOT_EXISTS(3001,"目标账户不存在"),
    IN_ACCOUNT_NOT_EXISTS(3002,"转账账户不存在"),
    MONEY_NOT_ENOUGH(3003,"余额不足");

    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
